package com.aruba.feignclient;

import com.aruba.feignclient.fallback.DemoFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "provider",fallback = DemoFeignClientFallback.class)
public interface DemoFeignClient {

    @RequestMapping("/demo")
    public String demo();


    @RequestMapping("/timeout")
    public String timeout();
}
